<el-dialog title="编辑员工活动信息" v-model="editFormDialog" @open='beforeEdit'>
<!-- <el-form :model="form"> -->
<el-form ref="editForm" :rules="editRules" :model="editForm" :label-width="dialogLabelWidth">
    

    <el-tabs  type="card" >
      <el-tab-pane label="基本信息" name="first">
        <el-row>
            <el-col :span="12">
              <el-form-item prop="time" label="活动日期及时间">
                  <el-date-picker  v-model="editForm.time" placeholder="请选择日期" type = "datetime" @change="timeEditChange"  >
                  </el-date-picker>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="活动名称" prop ="name" >
              <el-input v-model="editForm.name"   auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
             <el-col :span="12">
            <el-form-item label="活动策划人" >
              <el-input v-model="editForm.planner"   auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="活动地点">
              <el-input v-model="editForm.place" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
           <el-col :span="12">
            <el-form-item label="后期配合人员">
              <el-input v-model="editForm.partner" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item label="活动参与人员" prop="participant">
          <el-input
          v-model="editForm.participant"
          type="textarea"
          :autosize="{ minRows: 2, maxRows: 4}"
          placeholder="请输入内容">
        </el-input>
        </el-form-item>
        <el-form-item label="活动内容" prop="content">
          <el-input
          v-model="editForm.content"
          type="textarea"
          :autosize="{ minRows: 2, maxRows: 4}"
          placeholder="请输入内容">
        </el-input>
        </el-form-item>

        <el-row>
          <el-col :span="12">
            <el-form-item label="活动反馈报告">
           <!--  <img v-show='editUploadImg' :src="editUpload" alt="" style="max-width: 200px; max-height: 200px;"> -->
              <el-input v-model="editForm.file_realname" :src="editUpload" auto-complet="off" :disabled="true" ></el-input>
              
              <el-upload
               action="{:U('Upload/index_training')}" 
               accept="application/msword,application/vnd.ms-powerpoint,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
               :on-success="editFormUploadSuccess" 
               :on-error="addFormUploadError" 
               :data="pathInfo"
               :headers="xuploadheader"
               :multiple="false"
               :show-upload-list="false" :src="editUpload">
              <el-button size="small" type="primary">点击上传</el-button>
            </el-upload>
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item >
            <span style="color:red;">注：只能上传类型为doc,ppt,pdf,docx,excel,xls,xlsx类型的文件</span>
        </el-form-item>
      </el-tab-pane>
    </el-tabs>


  
    
  </el-form>
  <div slot="footer" class="dialog-footer">
   <include file="Common:_edit" />
  </div>
</el-dialog>